package com.nengchuan.kbms.dfs.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nengchuan.kbms.common.DfsTreeNode;
import com.nengchuan.kbms.dfs.entity.po.DataFolder;
import com.nengchuan.tree.model.NcTreeNode;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 文件夹 Mapper 接口
 * </p>
 *
 * @author abe
 * @since 2020-03-24
 */
@Repository
public interface DataFolderMapper extends BaseMapper<DataFolder> {

    /**
     * 通过节点id获取文件夹简单树型结构
     */
    List<DfsTreeNode> simpleTree(Long rootId);

    /**
     * 树节点懒加载
     */
    List<DfsTreeNode> lazySimpleTree(Long rootId);


}
